package Text;

public class Text1 {
    public static void main(String[] args) {
        int count=0;
        for(int i=0;i<=100;i++){
            count+=shu(i);
        }
        System.out.println(count);
    }
    static int shu(int i){
        int count=0;
        while (true){

            if(i<9){
                break;
            }
            if(i%10==9){
                count++;
            }
            i/=10;
        }
        return count;
    }
}
